class DefaultContextTest extends GroovyTestCase {

    def context

    void setUp() {
        context = new DefaultContext()
    }

    void testShouldBeDefault() {
        assert context.isDefault
    }

    void testShouldHaveWelcomeController() {
        assert "Welcome" == context.welcomeController
    }

    void testShouldHaveRootPath() {
        assert "" == context.path
    }

    void testShouldNotHaveAnyFilters() {
        assert context.filters.isEmpty()
    }

    void testShouldHaveCorrectListOfStaticContentLocations() {
        assert 2 == context.staticContentLocations.size()
        assert context.staticContentLocations.contains("/static")
        assert context.staticContentLocations.contains("/favicon.ico")
    }

}
